package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SSpringInteractInfo extends Object implements IMessageBase
    {
        public var miniPlayer:SPublicMiniPlayer;
        public var interactType:int;
        public var isFriend:Boolean;
        public const _type:int = 12082;
        public static var _regist:SSpringInteractInfo = new SSpringInteractInfo(true);

        public function SSpringInteractInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SSpringInteractInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.miniPlayer.__write(param1);
            param1.writeInt(this.interactType);
            param1.writeBool(this.isFriend);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(param1);
            this.interactType = param1.readInt();
            this.isFriend = param1.readBool();
            
        }

    }
}
